Skip to content

deps: bump up dd_trace_cpp to v1.0.0 #39409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

agrawroh
Copy link
Contributor

@agrawroh agrawroh commented May 8, 2025

Description

This PR bumps up the version of dd_trace_cpp to v1.0.0.

The v1.0.0 release of dd-trace-cpp represents a stable API that should provide better long-term API compatibility compared to pre-1.0 versions. Upgrading now reduces technical debt and ensures we're using the most current implementation with all fixes and improvements.

API Changes:
The v1.0.0 release includes some breaking API changes that required code modifications. These changes improve the library's usability and alignment with DataDog's other language implementations. Key changes include revised initialization patterns and updated configuration interfaces.

Reference:
For complete details on the v1.0.0 release: https://github.com/DataDog/dd-trace-cpp/releases/tag/v1.0.0


Commit Message: deps: bump up dd_trace_cpp to v1.0.0
Additional Description: Bump up the version of dd_trace_cpp to v1.0.0
Risk Level: Low
Testing: CI
Docs Changes: N/A
Release Notes: N/A

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #39409 was opened by agrawroh.

see: more, trace.

@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label May 8, 2025
Copy link

CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to (bazel/.*repos.*\.bzl)|(bazel/dependency_imports\.bzl)|(api/bazel/.*\.bzl)|(.*/requirements\.txt)|(.*\.patch).
envoyproxy/dependency-shepherds assignee is @moderation

🐱

Caused by: #39409 was opened by agrawroh.

see: more, trace.

@agrawroh agrawroh force-pushed the deps-dd_trace_cpp branch from 43e86ac to 72ba8bd Compare May 8, 2025 18:40
@agrawroh agrawroh force-pushed the deps-dd_trace_cpp branch from 72ba8bd to aa2447b Compare May 8, 2025 19:10
@agrawroh agrawroh marked this pull request as ready for review May 8, 2025 19:10
@agrawroh agrawroh requested a review from mattklein123 as a code owner May 8, 2025 19:10
@agrawroh
Copy link
Contributor Author

agrawroh commented May 8, 2025

/assign @phlax

@moderation
Copy link
Contributor

/lgtm deps

@repokitteh-read-only repokitteh-read-only bot removed the deps Approval required for changes to Envoy's external dependencies label May 9, 2025
Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
I've left a few minor suggestions.
Are you also expected to take ownership of the extension (

/*/extensions/tracers/datadog @dmehala @mattklein123
)?
If not, this should probably be approved by the current code-owners

/**
* Implementation of the required config() method from datadog::tracing::HTTPClient
*/
std::string config() const override;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider returning a const ref (or string_view) to avoid unneeded copies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, it doesn't match the base class's virtual function signature which returns by value.

./source/extensions/tracers/datadog/agent_http_client.h:89:22: error: virtual function 'config' has a different return type ('const std::string &' (aka 'const basic_string<char> &')) than the function it overrides (which has return type 'std::string' (aka 'basic_string<char>'))
   89 |   const std::string& config() const override;
      |         ~~~~~~~~~~~~ ^
bazel-out/darwin_arm64-opt/bin/external/com_github_datadog_dd_trace_cpp/_virtual_includes/dd_trace_cpp/datadog/http_client.h:64:23: note: overridden virtual function is here
   64 |   virtual std::string config() const = 0;
      |           ~~~~~~~~~~~ ^

@agrawroh
Copy link
Contributor Author

cc @dmehala @mattklein123 Could you please take a look as the extension owners?

@repokitteh-read-only repokitteh-read-only bot added the deps Approval required for changes to Envoy's external dependencies label May 12, 2025
@agrawroh agrawroh requested a review from adisuissa May 12, 2025 16:09
@dmehala
Copy link
Contributor

dmehala commented May 12, 2025

From what I recall, the last time I internally updated to version 1.0.0, Envoy began to crash (though this was some time ago and I was about to go on holiday). I will test it internally and keep you updated.

@agrawroh
Copy link
Contributor Author

From what I recall, the last time I internally updated to version 1.0.0, Envoy began to crash (though this was some time ago and I was about to go on holiday). I will test it internally and keep you updated.

It might be worth adding a few integration tests regardless. I can try to work on it.

@agrawroh
Copy link
Contributor Author

@dmehala Did you get a chance to try it on your side?

@dmehala
Copy link
Contributor

dmehala commented May 15, 2025

@agrawroh yes, we’re currently dogfooding on our end. Would it be reasonable to wait until Monday? That would give us sufficient time to test everything thoroughly.

@tyxia
Copy link
Member

tyxia commented May 20, 2025

@dmehala have you tried it on your end? Is this PR ready to be merged? Thanks

@dmehala
Copy link
Contributor

dmehala commented May 20, 2025

Hey @tyxia, we've got it running internally, but unfortunately, we hit several crashes because of the telemetry module in [email protected]. I'm talking with the team about what to do next. I think it's safer not to upgrade to v1.0.0 right now. Instead, we (datadog) should focus on releasing the next version of dd-trace-cpp with the best quality we can.
CC: @agrawroh

@tyxia
Copy link
Member

tyxia commented May 20, 2025

/wait

Then I just added a wait tag for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps Approval required for changes to Envoy's external dependencies waiting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants